<%--
  Created by IntelliJ IDEA.
  User: dell
  Date: 2018/5/27
  Time: 17:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
      <% String userName=request.getParameter("username");
         String password=request.getParameter("password");

         if ("admin".equals(userName)&&"123456".equals(password)){
             out.write("登录成功");

             session.setAttribute("isLogin","ture");
             response.sendRedirect("userList");
         }
         else {
             out.write("登录失败，密码错误");
         }

      %>
</body>
</html>
